<%@page contentType="text/html; charset=UTF-8"%>
<%@page import="org.huqiwen.blog.data.LinkDataBean"%>
<html>
	<head>
		<title>编辑链接</title>
		<!-- 此页面为暂时的，是因为准备后期改用AJAX来做，让修改链接在原页面实现 -->
   <link rel="stylesheet" type="text/css" href="/MyBlogDemo/skin/default/css/index.css">
   <link rel="stylesheet" type="text/css" href="/MyBlogDemo/skin/default/css/link.css">
   <script type="text/javascript" src="/MyBlogDemo/js/verify.js"></script>
   <% LinkDataBean linkBean = (LinkDataBean)request.getAttribute("linkBean"); %>
	</head>
	<body>
	<div id="container">
		<jsp:include page="../head.jsp"></jsp:include>
		<div id="addEditor">
  		<h5>修改友情链接</h5>
	  	<form action="LinkActionServlet?method=saveEditor" method="post" name="form1">
	  	<!-- 隐藏域，用来传递ID -->
	  	<input type="hidden" value="<%=linkBean.getLinkId()%>" name="id">
	  	<table>
	  	<tr>
	  		<td>链接名称：</td><td><input type="text" name="name" id="name" value="<%=linkBean.getLinkName()%>">(必填)</td>
	  	</tr>
	  	<tr>
	  		<td>链接地址：</td><td><input type="text" name="url" id="url" value="<%=linkBean.getLinkUrl()%>">(必填)</td>
	  	</tr>
	  	<tr>
	  		<td>描述：</td><td><input type="text" name="desceription" id="des" value="<%=linkBean.getLinkDescription()%>">(必填)</td>
	  	</tr>
	  	<tr>
	  		<td></td><td><input type="button" value="保存修改" class="sub" onclick="addLink()" /></td>
	  	</tr>
	  	</table>
	  	</form>
	  <hr>
	 </div>
		<jsp:include page="../foot.jsp"></jsp:include>
	</div>
	</body>	
</html>